/*
 *	从a.bin文件中读出文件并放在数组里打印出来.
 */

#include<stdio.h>

int main () {
	int arr[100] = {0};
	int size = 0;
	FILE *p_file = fopen("double.bin", "r");
	if (p_file != 0) {
		size = fread(arr, sizeof(int), 100, p_file);
		printf("实际操作存储区个数%d\n", size);
		for (int i = 0; i < size; i++) {
			printf("%d ", arr[i]);
		}
		printf("\n");
		fclose(p_file);
		p_file = NULL;
	}
	return 0;
}
